import request from '@/utils/request'

// 版本（分页）
export function pageList(query) {
  return request({
    url: '/system/androidVersionMgt/list',
    method: 'get',
    loading: true,
    params: query
  })
}

// 新增
export function add(data) {
  return request({
    url: '/system/androidVersionMgt',
    method: 'post',
    data: data,
    loading: true,
  })
}

export function getInfo(id) {
  return request({
    url: '/system/androidVersionMgt/' + id,
    method: 'get',
    loading: true
  })
}

export function edit(data) {
  return request({
    url: '/system/androidVersionMgt',
    method: 'put',
    data: data
  })
}

export function remove(id) {
  return request({
    url: '/system/androidVersionMgt/' + id,
    method: 'delete',
    loading: true
  })
}
